package com.peas.platform.module.icims.base.mdm.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("省市区")
public class RegionVo extends BaseVo {

    // 1:国家、2:省/直辖市、3:市、4:区县
    @Comment(value = "省市区类型", enumType = "RegionType")
    @ApiModelProperty(value = "省市区类型", notes = "枚举取值:RegionType")
    @Size(max = 20, message = "省市区类型不能超过20个字符")
    private String regionType;

    @Comment(value = "省市区编码")
    @ApiModelProperty(value = "省市区编码")
    @Size(max = 50, message = "省市区编码不能超过50个字符")
    private String regionCode;

    @Comment(value = "省市区名称")
    @ApiModelProperty(value = "省市区名称")
    @Size(max = 100, message = "省市区名称不能超过100个字符")
    private String regionName;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    // （省市区表）外键
    @Comment(value = "上级省市区ID")
    @ApiModelProperty(value = "上级省市区ID")
    private Long parentId;

}
